package models.vo
{
	import org.dexter.model.vo.VOBase;
	import org.dexter.sendDexterEvent;

	public class UserVO extends VOBase
	{
		public static var self:UserVO;
		public static var all:UserVO;
		public static const ADMIN:int = 2;
		public static const ALL:int = 1;
		public static const GUEST:int = 0;
		public static const EXPERT:int = 3;
		public var id:String;
		public var name:String;
		public var ip:String;
		public var address:String;
		public var groupAddress:String;
		public var av:String;
		public var role:int;
		public function UserVO(o:Object=null)
		{
			convertFromObject(o);
		}
		public function get toObject():Object{
			return {id:id,name:name,ip:ip,av:av,role:role};
		}
		public function get isSelf():Boolean{
			return id == self.id;
		}
	}
}